import layoutHeaderAside from '@/layout/header-aside'

const meta = { auth: true }

export default {
  path: '/project',
  name: 'project',
  meta,
  redirect: { name: 'project-index' },
  component: layoutHeaderAside,
  children: (pre => [
    {
      path: 'index',
      name: `${pre}index`,
      component: () => import('@/pages/project/index'),
      meta: {
        ...meta,
        title: '项目管理'
      }
    },
    {
      path: 'module',
      name: `${pre}project-module`,
      component: () => import('@/pages/project/module'),
      meta: {
        ...meta,
        title: '模块管理'
      }
    },
    {
      path: 'interface',
      name: `${pre}project-interface`,
      component: () => import('@/pages/project/interface'),
      meta: {
        ...meta,
        title: '接口管理'
      }
    }
  ])('project-')
}
